package com.wzy.mall.mapper.adminMapper;

import com.wzy.mall.model.pojo.adminPOJO.AdminPOJO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface AdminMapper {

    Integer selectAdminByUsernameAndPassword(AdminPOJO adminPOJO);

    List<AdminPOJO> selectAllAdmins();

    int addAdmin(AdminPOJO adminPOJO);

    int deleteAdmin(int id);

    List<AdminPOJO> selectByCondition(AdminPOJO adminPOJO);

    AdminPOJO selectById(int id);

    int updateById(AdminPOJO adminPOJO);

    AdminPOJO selectPwdByNickname(String nickname);

    int updatePwdById(AdminPOJO adminPOJO);

    String selectNickNameByID(@Param("id") Integer result);
}
